.login-container {
  position: relative;
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
}

// 横屏布局：左侧品牌区域
.brand-section {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 60rpx;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.brand-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
}

.logo-display {
  margin-bottom: 80rpx;
}

.logo-icon-large {
  display: block;
  margin-bottom: 40rpx;
  font-size: 200rpx;
  filter: drop-shadow(0 10rpx 20rpx rgba(0, 0, 0, 0.3));
}

.brand-title {
  display: block;
  margin-bottom: 20rpx;
  font-size: 72rpx;
  font-weight: bold;
  background: linear-gradient(45deg, #f39c12, #e67e22);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  display: block;
  margin-bottom: 30rpx;
  font-size: 48rpx;
  font-weight: 600;
  color: #ecf0f1;
}

.brand-description {
  display: block;
  font-size: 28rpx;
  color: #bdc3c7;
  letter-spacing: 2rpx;
  opacity: 0.9;
}

// 矿山场景装饰
.mining-scene {
  position: relative;
  height: 300rpx;
  margin: 60rpx 0;
  overflow: hidden;
}

// 功能亮点展示
.feature-highlights {
  display: flex;
  gap: 60rpx;
  justify-content: center;
  margin-top: 80rpx;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30rpx 20rpx;
  background: rgba(255, 255, 255, 0.1);
  border: 1rpx solid rgba(255, 255, 255, 0.2);
  border-radius: 20rpx;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;

  /* &:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10rpx);
  } */
}

.feature-icon {
  display: block;
  margin-bottom: 20rpx;
  font-size: 60rpx;
}

.feature-text {
  font-size: 24rpx;
  font-weight: 500;
  color: #ecf0f1;
}

// 横屏布局：右侧表单区域
.form-section {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 60rpx;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  position: relative;
  .server-address {
    position: fixed;
    color:dimgray;
    top: 96vh;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.8rem;
  }
}

.mountain {
  position: absolute;
  background: linear-gradient(45deg, rgba(52, 73, 94, 0.8), rgba(44, 62, 80, 0.6));

  &.mountain-1 {
    bottom: 0;
    left: 10%;
    width: 40%;
    height: 180rpx;
    opacity: 0.6;
    clip-path: polygon(0% 100%, 30% 20%, 60% 100%);
  }

  &.mountain-2 {
    right: 15%;
    bottom: 0;
    width: 45%;
    height: 150rpx;
    opacity: 0.4;
    clip-path: polygon(40% 100%, 70% 30%, 100% 100%);
  }

  &.mountain-3 {
    bottom: 0;
    left: 35%;
    width: 30%;
    height: 120rpx;
    opacity: 0.3;
    clip-path: polygon(20% 100%, 50% 40%, 80% 100%);
  }
}

.mining-truck {
  position: absolute;
  bottom: 80rpx;
  left: 20%;
  width: 60rpx;
  height: 30rpx;
  background: #f39c12;
  border-radius: 6rpx;
  opacity: 0.8;

  &.animated {
    animation: truckMove 8s ease-in-out infinite;
  }

  &::before {
    position: absolute;
    bottom: -8rpx;
    left: 8rpx;
    width: 12rpx;
    height: 12rpx;
    content: "";
    background: #2c3e50;
    border-radius: 50%;
  }

  &::after {
    position: absolute;
    right: 8rpx;
    bottom: -8rpx;
    width: 12rpx;
    height: 12rpx;
    content: "";
    background: #2c3e50;
    border-radius: 50%;
  }
}

@keyframes truckMove {
  0%,
  100% {
    left: 20%;
    transform: translateX(0);
  }
  50% {
    left: 60%;
    transform: translateX(-50%);
  }
}

.mining-equipment {
  position: absolute;
  right: 25%;
  bottom: 60rpx;
  width: 40rpx;
  height: 40rpx;
  background: #e67e22;
  border-radius: 6rpx;
  opacity: 0.6;

  &::before {
    position: absolute;
    top: -15rpx;
    left: 50%;
    width: 3rpx;
    height: 20rpx;
    content: "";
    background: #d35400;
    transform: translateX(-50%);
  }
}

.mining-path {
  position: absolute;
  right: 0;
  bottom: 60rpx;
  left: 0;
  height: 4rpx;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(241, 196, 15, 0.3) 20%,
    rgba(241, 196, 15, 0.5) 50%,
    rgba(241, 196, 15, 0.3) 80%,
    transparent 100%
  );
  border-radius: 2rpx;
}

// 登录表单
.login-form {
  width: 100%;
  max-width: 500rpx;
  padding: 80rpx 60rpx;
  background: rgba(255, 255, 255, 0.95);
  border: 1rpx solid rgba(255, 255, 255, 0.3);
  border-radius: 32rpx;
  box-shadow: 0 30rpx 80rpx rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

.form-header {
  margin-bottom: 60rpx;
  text-align: center;
}

.welcome-text {
  display: block;
  margin-bottom: 16rpx;
  font-size: 52rpx;
  font-weight: bold;
  color: #2c3e50;
  background: linear-gradient(45deg, #2c3e50, #34495e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-subtitle {
  display: block;
  font-size: 28rpx;
  font-weight: 400;
  color: #7f8c8d;
}

// 表单样式
:deep(.login-input) {
  width: 100%;
  margin-bottom: 30rpx;

  .wd-input__inner {
    box-sizing: border-box;
    width: 100%;
    height: 88rpx;
    padding: 0 40rpx;
    font-size: 28rpx;
    background: #f8f9fa;
    border: 2rpx solid #e8ecf0;
    border-radius: 44rpx;

    &:focus {
      background: #fff;
      border-color: #e67e22;
    }
  }

  .wd-input__prefix {
    font-size: 32rpx;
    color: #7f8c8d;
  }
}

// 确保表单项占满宽度
:deep(.wd-form-item) {
  width: 100%;
  margin-bottom: 0;
}

:deep(.wd-form-item__body) {
  width: 100%;
}

:deep(.wd-form-item__content) {
  width: 100%;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40rpx 0 60rpx;
}

:deep(.remember-checkbox) {
  .wd-checkbox__label {
    font-size: 26rpx;
    color: #7f8c8d;
  }
}

.forgot-password {
  font-size: 26rpx;
  color: #e67e22;
  text-decoration: none;
}

:deep(.login-button) {
  width: 100%;
  height: 88rpx;
  font-size: 32rpx;
  font-weight: bold;
  background: linear-gradient(135deg, #e67e22, #d35400);
  border: none;
  border-radius: 44rpx;
  box-shadow: 0 8rpx 24rpx rgba(230, 126, 34, 0.4);

  &:active {
    box-shadow: 0 4rpx 12rpx rgba(230, 126, 34, 0.4);
    transform: translateY(2rpx);
  }
}

// 其他登录方式
.other-login {
  margin-top: 80rpx;
}

.divider {
  position: relative;
  margin-bottom: 40rpx;
  text-align: center;

  &::before {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 1rpx;
    content: "";
    background: #e8ecf0;
  }
}

.divider-text {
  padding: 0 30rpx;
  font-size: 24rpx;
  color: #7f8c8d;
  background: rgba(255, 255, 255, 0.95);
}

.social-login {
  display: flex;
  gap: 60rpx;
  justify-content: center;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20rpx;
  border-radius: 16rpx;
  transition: all 0.3s ease;

  &:active {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(0.95);
  }
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80rpx;
  height: 80rpx;
  margin-bottom: 16rpx;
  font-size: 40rpx;
  border-radius: 50%;

  &.wechat-icon {
    background: linear-gradient(135deg, #1aad19, #00d100);
  }

  &.phone-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
  }
}

.social-text {
  font-size: 24rpx;
  color: #7f8c8d;
}
.copyright-text {
  padding-top: 30rpx;
  text-align: center;
  font-size: 26rpx;
  color: #7f8c8d;
}

// 竖屏时的回退样式（移动端）
@media screen and (orientation: portrait) {
  .login-container {
    display: block;
    flex-direction: column;
  }

  .brand-section {
    display: none;
  }

  .form-section {
    flex: none;
    min-height: 100vh;
    padding: 0 60rpx;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
  }

  .login-form {
    max-width: 70%;
    margin-top: 100rpx;
  }

  .form-header {
    .welcome-text {
      font-size: 48rpx;
    }

    .welcome-subtitle {
      font-size: 26rpx;
    }
  }
}

// 横屏优化 - 智慧矿山无人运输平台
@media screen and (orientation: landscape) {
  .login-container {
    height: 100vh;
    overflow: hidden;
  }

  .brand-section {
    min-height: 100vh;
  }

  .form-section {
    min-height: 100vh;
  }

  .login-form {
    max-width: 480rpx;
    padding: 60rpx 50rpx;
  }

  .form-header {
    margin-bottom: 50rpx;

    .welcome-text {
      font-size: 46rpx;
    }

    .welcome-subtitle {
      font-size: 26rpx;
    }
  }

  .logo-icon-large {
    font-size: 160rpx;
  }

  .brand-title {
    font-size: 64rpx;
  }

  .brand-subtitle {
    font-size: 42rpx;
  }

  .brand-description {
    font-size: 26rpx;
  }

  .feature-highlights {
    gap: 40rpx;
    margin-top: 60rpx;
  }

  .feature-item {
    padding: 24rpx 16rpx;
  }

  .feature-icon {
    margin-bottom: 16rpx;
    font-size: 48rpx;
  }

  .feature-text {
    font-size: 22rpx;
  }

  // 横屏时优化表单布局
  .login-options {
    margin: 30rpx 0 40rpx;
  }

  .other-login {
    margin-top: 50rpx;
  }

  .social-login {
    gap: 50rpx;
  }

  .social-item {
    padding: 16rpx;
  }

  .social-icon {
    width: 60rpx;
    height: 60rpx;
    margin-bottom: 12rpx;
    font-size: 32rpx;
  }

  .social-text {
    font-size: 22rpx;
  }
}

// 大屏设备优化
@media screen and (min-width: 1024px) {
  .brand-section {
    padding: 80rpx;
  }

  .form-section {
    padding: 80rpx;
  }

  .login-form {
    max-width: 520rpx;
    padding: 80rpx 60rpx;
  }

  .logo-icon-large {
    font-size: 180rpx;
  }

  .brand-title {
    font-size: 68rpx;
  }

  .brand-subtitle {
    font-size: 46rpx;
  }

  .feature-highlights {
    gap: 50rpx;
  }

  :deep(.login-input) {
    .wd-input__inner {
      height: 92rpx;
      padding: 0 45rpx;
      font-size: 30rpx;
    }
  }

  :deep(.login-button) {
    height: 92rpx;
    font-size: 34rpx;
  }
}

// 移动端横屏优化 - 小屏幕设备（手机横屏）
@media screen and (orientation: landscape) and (max-height: 500px) {
  .login-container {
    height: 100vh;
    overflow: hidden;
  }

  .brand-section {
    min-height: 100vh;
    padding: 15rpx;
  }

  .brand-content {
    transform: scale(0.6);
    transform-origin: center;
  }

  .logo-display {
    margin-bottom: 20rpx;
  }

  .logo-icon-large {
    font-size: 60rpx;
  }

  .brand-title {
    font-size: 28rpx;
  }

  .brand-subtitle {
    font-size: 22rpx;
  }

  .brand-description {
    font-size: 16rpx;
  }

  .mining-scene {
    height: 80rpx;
    margin: 15rpx 0;
  }

  .feature-highlights {
    display: none; // 小屏幕隐藏功能亮点
  }

  .form-section {
    min-height: 100vh;
    padding: 15rpx;
  }

  .login-form {
    max-width: 280rpx;
    padding: 25rpx 20rpx;
  }

  .form-header {
    margin-bottom: 20rpx;

    .welcome-text {
      font-size: 28rpx;
    }

    .welcome-subtitle {
      font-size: 18rpx;
    }
  }

  :deep(.login-input) {
    margin-bottom: 15rpx;

    .wd-input__inner {
      height: 60rpx;
      padding: 0 25rpx;
      font-size: 22rpx;
    }
  }

  .login-options {
    margin: 15rpx 0 20rpx;
  }

  :deep(.login-button) {
    height: 60rpx;
    font-size: 24rpx;
  }

  .other-login {
    margin-top: 20rpx;
  }

  .social-login {
    gap: 25rpx;
  }

  .social-item {
    padding: 8rpx;
  }

  .social-icon {
    width: 35rpx;
    height: 35rpx;
    margin-bottom: 6rpx;
    font-size: 20rpx;
  }

  .social-text {
    font-size: 16rpx;
  }
}